﻿Public Class EnderecoDTO

#Region "Atributos"

    Private _Logradouro As String
    Private _Numero As String
    Private _Bairro As String
    Private _Cidade As String
    Private _Estado As String
    Private _Cep As String
    Private _Complemento As String

#End Region

#Region "Propriedades"
    Public Property pLogradouro() As String
        Get
            Return _Logradouro
        End Get
        Set(ByVal value As String)
            _Logradouro = value
        End Set
    End Property

    Public Property pNumero() As String
        Get
            Return _Numero
        End Get
        Set(ByVal value As String)
            _Numero = value
        End Set
    End Property

    Public Property pBairro() As String
        Get
            Return _Bairro
        End Get
        Set(ByVal value As String)
            _Bairro = value
        End Set
    End Property

    Public Property pCidade() As String
        Get
            Return _Cidade
        End Get
        Set(ByVal value As String)
            _Cidade = value
        End Set
    End Property

    Public Property pEstado() As String
        Get
            Return _Estado
        End Get
        Set(ByVal value As String)
            If value.Length < 3 Then
                _Estado = value
            End If
        End Set
    End Property

    Public Property pCep() As String
        Get
            Return _Cep
        End Get
        Set(ByVal value As String)
            If value.Length < 9 Then
                _Cep = value
            End If
        End Set
    End Property

    Public Property pComplemento() As String
        Get
            Return _Complemento
        End Get
        Set(ByVal value As String)
            _Complemento = value
        End Set
    End Property

#End Region

End Class
